package com.viish.apps.tripletriad.views;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.widget.ImageView;

public class ElementView extends ImageView
{
	private Bitmap picture;
	private int positionX, positionY;
	
	public ElementView(Context context, Bitmap picture, int positionX, int positionY) 
	{
		super(context);
		this.picture = picture;
		this.positionX = positionX;
		this.positionY = positionY;
	}
	
	@Override
	protected void onDraw(Canvas canvas) 
	{
		canvas.drawBitmap(this.picture, this.positionX, this.positionY, null);
	}
}
